import request from '@/utils/request'

// 查询菜品信息列表
export function listDishes(query) {
  return request({
    url: '/wsd_dishes/list',
    method: 'get',
    params: query
  })
}

// 查询菜品信息详细
export function getDishes(dishId) {
  return request({
    url: '/wsd_dishes/' + dishId,
    method: 'get'
  })
}

// 新增菜品信息
export function addDishes(data) {
  return request({
    url: '/wsd_dishes',
    method: 'post',
    data: data
  })
}

// 修改菜品信息
export function updateDishes(data) {
  return request({
    url: '/wsd_dishes',
    method: 'put',
    data: data
  })
}

// 删除菜品信息
export function delDishes(dishId) {
  return request({
    url: '/wsd_dishes/' + dishId,
    method: 'delete'
  })
}
